/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Cadastro;

import java.util.Objects;

/**
 *
 * @author Allan
 */
public class Contato {
    protected String celular;
    protected String email;
    protected String telefone;
    protected String observacao;
    protected String telreferencia1;
    protected String telreferencia2;

    public Contato() {
    }

    public Contato(String celular, String email, String telefone, String observacao, String telreferencia1, String telreferencia2) {
        this.celular = celular;
        this.email = email;
        this.telefone = telefone;
        this.observacao = observacao;
        this.telreferencia1 = telreferencia1;
        this.telreferencia2 = telreferencia2;
    }

    public String getCelular() {
        return celular;
    }

    public void setCelular(String celular) {
        this.celular = celular;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTelefone() {
        return telefone;
    }

    public void setTelefone(String telefone) {
        this.telefone = telefone;
    }

    public String getObservacao() {
        return observacao;
    }

    public void setObservacao(String observacao) {
        this.observacao = observacao;
    }

    public String getTelreferencia1() {
        return telreferencia1;
    }

    public void setTelreferencia1(String telreferencia1) {
        this.telreferencia1 = telreferencia1;
    }

    public String getTelreferencia2() {
        return telreferencia2;
    }

    public void setTelreferencia2(String telreferencia2) {
        this.telreferencia2 = telreferencia2;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 23 * hash + Objects.hashCode(this.celular);
        hash = 23 * hash + Objects.hashCode(this.email);
        hash = 23 * hash + Objects.hashCode(this.telefone);
        hash = 23 * hash + Objects.hashCode(this.observacao);
        hash = 23 * hash + Objects.hashCode(this.telreferencia1);
        hash = 23 * hash + Objects.hashCode(this.telreferencia2);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Contato other = (Contato) obj;
        if (!Objects.equals(this.celular, other.celular)) {
            return false;
        }
        if (!Objects.equals(this.email, other.email)) {
            return false;
        }
        if (!Objects.equals(this.telefone, other.telefone)) {
            return false;
        }
        if (!Objects.equals(this.observacao, other.observacao)) {
            return false;
        }
        if (!Objects.equals(this.telreferencia1, other.telreferencia1)) {
            return false;
        }
        if (!Objects.equals(this.telreferencia2, other.telreferencia2)) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Contato{" + "celular=" + celular + ", email=" + email + ", telefone=" + telefone + ", observacao=" + observacao + ", telreferencia1=" + telreferencia1 + ", telreferencia2=" + telreferencia2 + '}';
    }
    
    
}
